<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/page/common/common_header.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>班次详情</title>

<script src='${baseURL }/js/jquery.min.js'></script>
<script src='${baseURL }/js/common/addTab.js'></script>

<script type="text/javascript" src="http://10.0.250.52/uidev/package/js/itcui.dev.js"></script>
<link rel="stylesheet" type="text/css" href="http://10.0.250.52/uidev/package/css/itcui.dev.css" media="all"/>
<script type="text/javascript" src="http://10.0.250.52/uidev/package/source/thirdparty/js/jquery.validate.js"></script>

<!-- toolbar css  -->
<link rel="stylesheet" type="text/css" href="${baseURL }/css/base.css"
	media="all" />

<script>
	var fields = [
				{title : "班次编号", id : "bcId",rules : {required:true}},
	  			{title : "班次名称", id : "bcName",rules : {required:true},linebreak:true},
	  			{title : "开始时间", id : "startTime",rules : {required:true},linebreak:true},
	  			{title : "结束时间", id : "endTime",rules : {required:true},linebreak:true},
	  			{title : "排序", id : "sort",linebreak:true}
	  		];
	function autoform(){			
		$("#autoform").ITC_Form({validate:true,},fields);
	}
	function autoformf(){
		$("#autoform").ITC_Form({validate:true,fixLabelWidth:true},fields);
	}
	
	$(document).ready(function() {
		autoformf();
		 var data = {
			        "bcId" : "100001",
			        "bcName" : "早班",
			        "startTime":"00:00",
			        "endTime":"08:00",
			        "sort" : "1"
			    }
		$("#autoform").ITC_Form("loaddata",data);
	});
			
</script>

</head>
<body class="ml12 mr12 mt12">
	<div id="content">
		<div class="toolbar" style="border-bottom: #5aa3d6 1px solid">
			<div class="row btn-group-sm">
					<button type="button" class="btn btn-default" onclick="closeTab()">关闭</button>
					<button type="button" class="btn btn-success">保存</button>
			</div>
		</div>
	<form id="autoform">
	</form>
	</div>
</body>
</html>